package cn.com.nes.mybatis.callcenter.mapper;

import cn.com.nes.site.service.comecall.dto.CallOfTimeStatisticsDto;
import cn.com.nes.site.service.comecall.dto.CallRecordsDto;
import cn.com.nes.site.service.comecall.dto.CallWorkOrderStatisticsDto;
import cn.com.nes.site.service.comecall.entity.CallRecords;
import cn.com.nes.site.service.comecall.vo.CallOfTimeStatisticsVo;
import cn.com.nes.site.service.comecall.vo.CallQuantityStatisticsVo;
import cn.com.nes.site.service.comecall.vo.CallRecordsVO;
import cn.com.nes.site.service.comecall.vo.CallWorkOrderStatisticsVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CallRecordsMapper extends BaseMapper<CallRecords> {

    List<CallRecordsDto> getCallRecords(Page<CallRecordsDto> page, @Param("vo") CallRecordsVO vo);


    List<CallRecords> selectByCompanyIdAndCdrId(@Param("vo") List<CallRecords> records);


    List<Map<String, Object>> getCallQuantityStatistics(@Param("vo") CallQuantityStatisticsVo vo);


    List<CallOfTimeStatisticsDto> getCallOfTimeStatistics(@Param("vo") CallOfTimeStatisticsVo vo);


    List<CallWorkOrderStatisticsDto> getCallWorkOrderStatistics(@Param("vo") CallWorkOrderStatisticsVo vo);

}